//package com.woniuxy.ptapp.app.listener;
//import com.woniuxy.commons.util.WebUtil;
//import com.woniuxy.relation.client.AnnouncementClient;
//import com.woniuxy.relation.client.form.SendAnnouncementForm;
//import feign.RequestTemplate;
//import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
//import org.apache.rocketmq.spring.core.RocketMQListener;
//import org.springframework.http.ResponseEntity;
//import org.springframework.stereotype.Component;
//import org.springframework.web.client.RestTemplate;
//import javax.annotation.Resource;
//
//@Component
//@RocketMQMessageListener(consumerGroup = "test202",topic = "testRestTemplate")
//public class TestListener implements RocketMQListener {
//
//    @Resource
//    AnnouncementClient ac;
//
//    @Override
//    public void onMessage(Object o) {
//        System.out.println(o);
//        SendAnnouncementForm saf = new SendAnnouncementForm();
//        saf.setContent("王栋测试");
//        saf.setAcceptAccountId("1");
//        ac.sendAnnouncement(saf);
//
//    }
//}
